package com.sistemagestion.Entities;

import java.io.Serializable;

import com.sistemagestion.Utils.NotMapping;
import com.sistemagestion.Utils.PrimaryKey;

public class FormaPago implements Serializable{

	@NotMapping(isNotMapping = 1)
	private static final long serialVersionUID = 1L;
	
	@PrimaryKey(isPrimaryKey =1)
	private int IdFormaPago;
	
	private String FormaPago;

	public int getIdFormaPago() {
		return IdFormaPago;
	}

	public void setIdFormaPago(int idFormaPago) {
		IdFormaPago = idFormaPago;
	}

	public String getFormaPago() {
		return FormaPago;
	}

	public void setFormaPago(String formaPago) {
		FormaPago = formaPago;
	}

	@Override
	public String toString() 
	{
		return this.FormaPago;
	};
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + IdFormaPago;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FormaPago other = (FormaPago) obj;
		if (IdFormaPago != other.IdFormaPago)
			return false;
		return true;
	}
	
	
	

}
